public class Employee {
    private String name;
    private double perSalary;
    private int workDate;

    public Employee(String name, double perSalary, int workDate) {
        this.name = name;
        this.perSalary = perSalary;
        this.workDate = workDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPerSalary() {
        return perSalary;
    }

    public void setPerSalary(double perSalary) {
        this.perSalary = perSalary;
    }

    public int getWorkDate() {
        return workDate;
    }

    public void setWorkDate(int workDate) {
        this.workDate = workDate;
    }
    public void printSalary(){
        System.out.println("雇员姓名:"+name+"，工资:"+perSalary*workDate);
    }
}
